<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="kopf.htm"/>
</head>

<body>

	<jsp:include page="loggedin.jsp" />

	<div id="content">
		<h2><c:out value="${title}"/></h2>
		<table class="listing">
			<colgroup>
				<c:if test="${edit}">
					<col class="buttoncell"/>
					<col class="buttoncell"/>
				</c:if>
				<col/>
				<col/>
				<col/>
			</colgroup>
			<tbody>
				<tr>
					<c:if test="${edit}">
					<th></th>
					</c:if>
					<th>Tennisplatz</th>
					<th>Bewertung</th>
					<th>Kommentar</th>
				</tr>
				<c:forEach items="${bewertung}" var="bewertung">
					<tr>
						<c:if test="${edit}">
							<td>
								<a href="EditBewertung.html?id=<c:out value="${bewertung.id}"/>">
									<img src="images/button_edit.png" alt="Icon - Bearbeite Bewertung"/>
								</a>
							</td>

						</c:if>
						<td><c:out value="${bewertung.tennisplatz.name}"/></td>
						<td><c:out value="${bewertung.count}"/></td>
						<td><c:out value="${bewertung.comment}"/></td>
						
					</tr>
				</c:forEach>  
			</tbody>
		</table> 
	</div>
	<jsp:include page="fuss.htm" />
</body>

</html>  


